public class Student {
    private int stuid;
    private String stuname;
    private String age;

    public Student() {//创建以后调用setXXX赋值
    }

    public Student(int stuid, String stuname, String age) {//创建对象的同时并赋值
        this.stuid = stuid;
        this.stuname = stuname;
        this.age = age;
    }

    public int getStuid() {
        return stuid;
    }

    public void setStuid(int stuid) {
        this.stuid = stuid;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuid=" + stuid +
                ", stuname='" + stuname + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
